<!-- Author: Moe Kyaw Thu Aung --> 
<!-- Last Modified: 11 Sep 2012 -->
<?php
	session_start();
	if(isset($_SESSION['auth'])) {
		header("location: list.php");
		exit(0);
	}
?>

<html>
	<head>
		<title>OneStop JCU Book Store : Administration</title>
		<link rel="stylesheet" href="../css/admin.css" />
	</head>
	<body>
		<div id="wrapper">
			<div id="head">
				<h1>OneStop JCU Book Store &laquo; Admin Login</h1>
			</div>
						
			<?php
			error_reporting (E_ALL ^ E_NOTICE);
				if($_SESSION['msg'] != "" || !isset($_SESSION['msg'])) {
					echo '<div class="msg">' . $_SESSION['msg'] . '</div>';
					$_SESSION['msg'] = "";
				}
			?>
			
			<div id="login-box">
				<form action="actions.php?do=login" method="post">
					<div class='form-field'>
					<input type="text" name="name" /> Name
					</div>
					
					<div class='form-field'>
					<input type="password" name="password" /> Password
					</div>
					
					<input type="submit" value="login &raquo;" />
				</form>
			</div>
			
			<br /><br /><br />
			
			<div id="foot">
				&copy; OneStop JCU.
			</div>
		</div>
	</body>
</html>
